import { RouterProvider, createBrowserRouter} from 'react-router-dom';
import Login from '../pages/Login/Index.tsx';
import Register from '../pages/Register/Index.tsx';
import BookManage from '../pages/BookMange/Index.tsx';

const routes = [
  {
    path: "/login",
    element: <Login/>,
  },
  {
    path: "/register",
    element: <Register/>,
  },
  {
    path: "/",
    element: <BookManage/>,
  },
];

export const router = createBrowserRouter(routes);
